package com.xiaolong.common.exception;

import java.io.Serial;

public class BusinessException  extends RuntimeException{

    @Serial
    private static final long serialVersionUID = -4809052172379660998L;

    int code=-1;

    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
